home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / AppleScript / Development Tools / Interfaces / AppleScript 1.1 Interfaces / CIncludes / OSAGeneric.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-27  |  3.3 KB  |  106 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        OSAGeneric.h
  3.  
  4.     Copyright:    © 1984-1993 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef __OSAGeneric__
  13. #define __OSAGeneric__
  14.  
  15. #ifndef __OSA__
  16. #include <OSA.h>
  17. /*    #include <AppleEvents.h>                                    */
  18. /*        #include <Types.h>                                        */
  19. /*            #include <ConditionalMacros.h>                        */
  20. /*            #include <MixedMode.h>                                */
  21. /*                #include <Traps.h>                                */
  22. /*        #include <Memory.h>                                        */
  23. /*        #include <OSUtils.h>                                    */
  24. /*        #include <Events.h>                                        */
  25. /*            #include <Quickdraw.h>                                */
  26. /*                #include <QuickdrawText.h>                        */
  27. /*                    #include <IntlResources.h>                    */
  28. /*        #include <EPPC.h>                                        */
  29. /*            #include <PPCToolBox.h>                                */
  30. /*                #include <AppleTalk.h>                            */
  31. /*            #include <Processes.h>                                */
  32. /*                #include <Files.h>                                */
  33. /*                    #include <SegLoad.h>                        */
  34. /*        #include <Notification.h>                                */
  35. /*    #include <AEObjects.h>                                        */
  36. /*    #include <Components.h>                                        */
  37. #endif
  38.  
  39. #ifdef __cplusplus
  40. extern "C" {
  41. #endif
  42.  
  43. enum  {
  44.     errOSAComponentMismatch        = -1761,                        // Parameters are from 2 different components
  45.     errOSACantOpenComponent        = -1762                            // Can't connect to scripting system with that ID
  46. };
  47.  
  48.  
  49. // Component version this header file describes
  50.  
  51. enum  {
  52.     kGenericComponentVersion    = 0x0100
  53. };
  54.  
  55. #define kGSSSelectGetDefaultScriptingComponent 0x1001
  56.  
  57. #define kGSSSelectSetDefaultScriptingComponent 0x1002
  58.  
  59. #define kGSSSelectGetScriptingComponent 0x1003
  60.  
  61. #define kGSSSelectGetScriptingComponentFromStored 0x1004
  62.  
  63. #define kGSSSelectGenericToRealID 0x1005
  64.  
  65. #define kGSSSelectRealToGenericID 0x1006
  66.  
  67. #define kGSSSelectOutOfRange 0x1007
  68.  
  69. typedef OSType ScriptingComponentSelector;
  70.  
  71. typedef OSAID GenericID;
  72.  
  73.  
  74. // get and set the default scripting component
  75.  
  76. extern pascal OSAError OSAGetDefaultScriptingComponent(ComponentInstance genericScriptingComponent, ScriptingComponentSelector *scriptingSubType)
  77.  FIVEWORDINLINE(0x2F3C, 4, 0x1001, 0x7000, 0xA82A);
  78. extern pascal OSAError OSASetDefaultScriptingComponent(ComponentInstance genericScriptingComponent, ScriptingComponentSelector scriptingSubType)
  79.  FIVEWORDINLINE(0x2F3C, 4, 0x1002, 0x7000, 0xA82A);
  80.  
  81. // get a scripting component instance from its subtype code
  82.  
  83. extern pascal OSAError OSAGetScriptingComponent(ComponentInstance genericScriptingComponent, ScriptingComponentSelector scriptingSubType, ComponentInstance *scriptingInstance)
  84.  FIVEWORDINLINE(0x2F3C, 8, 0x1003, 0x7000, 0xA82A);
  85.  
  86. // get a scripting component selector (subType) from a stored script
  87.  
  88. extern pascal OSAError OSAGetScriptingComponentFromStored(ComponentInstance genericScriptingComponent, const AEDesc *scriptData, ScriptingComponentSelector *scriptingSubType)
  89.  FIVEWORDINLINE(0x2F3C, 8, 0x1004, 0x7000, 0xA82A);
  90.  
  91. // get a real component instance and script id from a generic id
  92.  
  93. extern pascal OSAError OSAGenericToRealID(ComponentInstance genericScriptingComponent, OSAID *theScriptID, ComponentInstance *theExactComponent)
  94.  FIVEWORDINLINE(0x2F3C, 8, 0x1005, 0x7000, 0xA82A);
  95.  
  96. // get a generic id from a real component instance and script id
  97.  
  98. extern pascal OSAError OSARealToGenericID(ComponentInstance genericScriptingComponent, OSAID *theScriptID, ComponentInstance theExactComponent)
  99.  FIVEWORDINLINE(0x2F3C, 8, 0x1006, 0x7000, 0xA82A);
  100. #ifdef __cplusplus
  101. }
  102. #endif
  103.  
  104. #endif
  105.  
  106.